package com.tierstall.client.service;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.tierstall.shared.UserDTO;

import java.util.ArrayList;



public interface UsersServiceAsync {

	void addUser(String sessionId, UserDTO user, AsyncCallback<UserDTO> callback);

	void deleteUser(String sessionId, String id, AsyncCallback<Boolean> callback);

	void deleteUsers(String sessionId, ArrayList<String> ids,
			AsyncCallback<ArrayList<UserDTO>> callback);

	void getUserDetails(String sessionId,
			AsyncCallback<ArrayList<UserDTO>> callback);

	void getUser(String sessionId, String id, AsyncCallback<UserDTO> callback);

	void updateUser(String sessionId, UserDTO user,
			AsyncCallback<UserDTO> callback);
}
